package com.jingdong.service.address.impl;


import com.jingdong.dao.address.impl.CityDaoImpl;
import com.jingdong.model.City;
import com.jingdong.service.address.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Autowired
    private CityDaoImpl cityDao;

    public List<City> getCityList(int id) {
        return cityDao.getCityList(id);
    }

    public City getCityById(int id) {
        return cityDao.getCityById(id);
    }

    public int citySave(City city) {

        return cityDao.citySave(city);
    }

    public City getCityForLikeByName(String stringCity) {
        return cityDao.getCityForLikeByName(stringCity);
    }
}
